list-[id].vue 72 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation></HomePageNavigation>
  7. <!-- 面包屑导航 -->
  8. <!-- 资讯列表 -->
  9. <div class="newsList">
  10. <!-- <div class="backgroundBox"> -->
  11. <div class="listBoxLeft">
  12. <!-- 面包屑导航 -->
  13. <div class="breadcrumb-box">
  14. <div class="inner">
  15. <span class="location">当前位置:</span>
  16. <el-breadcrumb :separator-icon="ArrowRight">
  17. <el-breadcrumb-item>
  18. <NuxtLink to="/">首页</NuxtLink>
  19. </el-breadcrumb-item>
  20. <el-breadcrumb-item v-if="parent_name !=''">
  21. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  22. </el-breadcrumb-item>
  23. <el-breadcrumb-item class="phone_breadcrumb_text">{{ name }}</el-breadcrumb-item>
  24. </el-breadcrumb>
  25. </div>
  26. </div>
  27. <ul class="list">
  28. <li v-for="(item, index) in newsList" :key="index">
  29. <NuxtLink :href="getLinkPathDetail(item)" :title="item.alias">
  30. <div class="hasImg" v-if="index % 2 == 0">
  31. <h3 class="newsTopTitle">严守底线与激发活力并举——萧县探索生态环境执法新路径严守底线与激发活力并举——萧县探索生态环境执法新路径</h3>
  32. <div class="newsBottomBody">
  33. <div class="li_img_box">
  34. <img class="" src="http://img.hbfzdy.org.cn/202601/8441f4d36b14fb0.jpg" title="" alt="">
  35. </div>
  36. <div class="li_right_box">
  37. <!-- <div class="li_dot3">{{ item.introduce }}</div> -->
  38. <div class="li_dot3">近年来,萧县坚持以生态环境高水平保护推动高质量发展,持续优化执法方式,严守环保底线与激发企业内生动力并重,努力实现环境保护与经济发展协同共进。截至2025年,全县累计出动生态环境执法人员7300余人次</div>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="notHasImg" v-else>
  43. <h3 class="newsTopTitle">自治区生态环境厅召开2025年度全区生态环境监测业务工作年终总结会暨党建工作调度会</h3>
  44. <div class="li_dot3">
  45. 1月9日,自治区生态环境厅召开2025年度全区生态环境监测业务工作年终总结会暨党建工作调度会。会议总结2025年工作成效,对2026年重点工作进行部署,会上集中学习了《生态环境监测条例》。自治区生...
  46. <span>【阅读更多】</span>
  47. </div>
  48. </div>
  49. </NuxtLink>
  50. </li>
  51. </ul>
  52. <!-- 分页器 -->
  53. <div class="pagination pagination_phone_none" v-if="total > 0">
  54. <el-pagination
  55. size="small"
  56. background
  57. layout="prev, pager, next"
  58. :total="total"
  59. class="mt-4"
  60. :page-size="pageSize"
  61. :current-page="pageNum"
  62. prev-text="上一页"
  63. next-text="下一页"
  64. @current-change="changePage"
  65. />
  66. <span class="total">共{{ total }}条</span>
  67. </div>
  68. <div class="pagination pagination_pc_none" v-if="total > 0">
  69. <el-pagination pager-count="5" size="small" background layout="pager" :total="total"
  70. class="mt-4" :page-size="pageSize" :current-page="pageNum" @current-change="changePage" />
  71. </div>
  72. </div>
  73. <div class="listBoxRight">
  74. <div class="newsItemsBox">
  75. <div class="new-items-box-title">
  76. <span></span>
  77. <NuxtLink to="/" title="最新资讯"> 最新动态 </NuxtLink>
  78. </div>
  79. <div class="new-items-box-body">
  80. <div class="coniteml zzjj">
  81. <div class="l_img maskLayer">
  82. <NuxtLink class="imgA" to="http://hbfzdy.org.cn/show-139825.html" title="全国统战部长会议在京召开 王沪宁出席并讲话">
  83. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  84. </NuxtLink>
  85. <NuxtLink class="maskLayer_text" to="http://hbfzdy.org.cn/show-139825.html" title="全国统战部长会议在京召开 王沪宁出席并讲话">
  86. <span class="zzc">全国统战部长会议在京召开 王沪宁出席并讲话</span>
  87. </NuxtLink>
  88. </div>
  89. <div class="l_img maskLayer">
  90. <NuxtLink class="imgA" to="http://hbfzdy.org.cn/show-139806.html" title="监测数据造假不可为 企业个人的环保法律责任清单">
  91. <img src="http://img.hbfzdy.org.cn/202601/940d7fb8dff31.png" data-src="http://img.hbfzdy.org.cn/202601/940d7fb8dff31.png" data-isloaded="1">
  92. </NuxtLink>
  93. <NuxtLink class="maskLayer_text" to="http://hbfzdy.org.cn/show-139806.html" title="监测数据造假不可为 企业个人的环保法律责任清单">
  94. <span class="zzc">监测数据造假不可为 企业个人的环保法律责任清单</span>
  95. </NuxtLink>
  96. </div>
  97. </div>
  98. <ul class="conitemlList">
  99. <li>
  100. <span>1</span>
  101. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  102. </li>
  103. <li>
  104. <span>2</span>
  105. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  106. </li>
  107. <li>
  108. <span>3</span>
  109. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  110. </li>
  111. <li>
  112. <span>4</span>
  113. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  114. </li>
  115. <li>
  116. <span>5</span>
  117. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  118. </li>
  119. <li>
  120. <span>6</span>
  121. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  122. </li>
  123. <li>
  124. <span>7</span>
  125. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  126. </li>
  127. <li>
  128. <span>8</span>
  129. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  130. </li>
  131. <li>
  132. <span>9</span>
  133. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  134. </li>
  135. <li>
  136. <span>10</span>
  137. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  138. </li>
  139. </ul>
  140. </div>
  141. </div>
  142. <div class="newsItemsBox">
  143. <div class="new-items-box-title">
  144. <span></span>
  145. <NuxtLink to="/" title="最新资讯"> 热点新闻 </NuxtLink>
  146. </div>
  147. <div class="new-items-box-body">
  148. <div class="coniteml2">
  149. <div class="rdxwImg">
  150. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  151. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  152. </NuxtLink>
  153. </div>
  154. <div class="rdxwText">
  155. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  156. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  157. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  158. </NuxtLink>
  159. </div>
  160. </div>
  161. <div class="coniteml2">
  162. <div class="rdxwImg">
  163. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  164. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  165. </NuxtLink>
  166. </div>
  167. <div class="rdxwText">
  168. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  169. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  170. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  171. </NuxtLink>
  172. </div>
  173. </div>
  174. <div class="coniteml2">
  175. <div class="rdxwImg">
  176. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  177. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  178. </NuxtLink>
  179. </div>
  180. <div class="rdxwText">
  181. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  182. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  183. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  184. </NuxtLink>
  185. </div>
  186. </div>
  187. <div class="coniteml2">
  188. <div class="rdxwImg">
  189. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  190. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  191. </NuxtLink>
  192. </div>
  193. <div class="rdxwText">
  194. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  195. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  196. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  197. </NuxtLink>
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. <!-- <DetailHotNews></DetailHotNews> -->
  203. <!-- <DetailHotNews2></DetailHotNews2> -->
  204. </div>
  205. <!-- </div> -->
  206. </div>
  207. <!-- 页面底部 -->
  208. <HomeFoot></HomeFoot>
  209. </div>
  210. </template>
  211. <script setup>
  212. //1.页面必备依赖 start ---------------------------------------->
  213. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  214. import { ArrowRight } from '@element-plus/icons-vue'
  215. import { ref, onMounted } from 'vue';
  216. //当前列表名称
  217. const name = ref('')
  218. const { $webUrl, $CwebUrl, $BwebUrl } = useNuxtApp()
  219. //格式化跳转路径
  220. const getLinkPathDetail = (item) => {
  221. if (item.islink == 1) {
  222. return `${item.linkurl}`;
  223. } else {
  224. //return `/${item.aLIas_pinyin}/${item.id}`;
  225. //return `/newsDetail/${item.id}`
  226. return `/${item.pinyin}/${item.id}.html`;
  227. }
  228. }
  229. //1.页面必备依赖 end ---------------------------------------->
  230. //1.获得路由id start ---------------------------------------->
  231. const route = useRoute();
  232. let articleId = 0;//路由id
  233. let pageNum = ref(2);
  234. let total = ref(1);
  235. let pageSize = ref(10);
  236. //获得当前的完整路径
  237. const fullPath = route.path;
  238. //拆分,取出来中间这一段,然后提取数字部分
  239. const segments = fullPath.split('/');
  240. const targetSegment = segments[1];
  241. //const numberPart = targetSegment.match(/\d+$/)?.[0];
  242. //let routeId = 20 //排除路径错误可以打开这个
  243. //通过导航路径反向查询导航id
  244. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  245. method: 'GET',
  246. query: {
  247. 'pinyin': targetSegment,
  248. },
  249. });
  250. if (getRouteId.code == 200) {
  251. articleId = getRouteId.data.category_id
  252. } else {
  253. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  254. console.log("错误位置:通过url路径查询导航池id")
  255. console.log("后端错误反馈:", getRouteId.message)
  256. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  257. }
  258. //获得html前的数字
  259. // const pageUrl = segments[2];
  260. // const pageNumber = pageUrl.split('.')[0];
  261. // console.log("当前URL中的页码:")
  262. // console.log(pageNumber)//2
  263. // pageNum.value = parseInt(pageNumber);
  264. pageNum.value = parseInt(route.params.id);
  265. //1.获得路由id end ---------------------------------------->
  266. //2.页面数据 start ---------------------------------------->
  267. //2.2新闻列表
  268. const newsList = ref([]);
  269. let newslists = async () => {
  270. const listData = await requestDataPromise('/web/getWebsiteArticleList', {
  271. method: 'GET',
  272. query: {
  273. 'page': pageNum.value,
  274. 'pageSize': pageSize.value,
  275. 'catid': articleId
  276. },
  277. });
  278. if (listData.code == 200) {
  279. newsList.value = listData.data.rows;
  280. total.value = listData.data.count;
  281. } else {
  282. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  283. // console.log("错误位置:获取新闻列表")
  284. // console.log("后端错误反馈:", listData.message)
  285. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  286. }
  287. }
  288. //获得列表
  289. newslists();
  290. //分页事件
  291. let changePage = (value) => {
  292. console.log("当前页码", value);
  293. navigateTo(`/${targetSegment}/list-${value}.html`)
  294. }
  295. //2.3获得页面名称
  296. let getPageName = async () => {
  297. const pageName = await requestDataPromise('/web/getOneWebsiteCategory', {
  298. method: 'GET',
  299. query: {
  300. 'catid': articleId
  301. },
  302. });
  303. if (pageName.code == 200) {
  304. name.value = pageName.data.alias
  305. } else {
  306. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  307. // console.log("错误位置:设置页面标题")
  308. // console.log("后端错误反馈:", pageName.message)
  309. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  310. }
  311. }
  312. //获得列表
  313. getPageName();
  314. //2.页面数据 end ---------------------------------------->
  315. //3.二级栏目 start ---------------------------------------->
  316. //3.1通过id获取父栏目
  317. const parent_name = ref([]);
  318. const parent_id = ref([]);
  319. const parent_pinyin = ref("");
  320. let getParentNav = async () => {
  321. const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
  322. method: 'GET',
  323. query: {
  324. 'catid': articleId
  325. },
  326. });
  327. if (listData.code == 200) {
  328. console.log(111999)
  329. console.log(listData.data);
  330. parent_name.value = listData.data.parent_name;
  331. parent_id.value = listData.data.parent_id;
  332. parent_pinyin.value = listData.data.parent_pinyin;
  333. } else {
  334. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  335. // console.log("错误位置:获取新闻列表")
  336. // console.log("后端错误反馈:", listData.message)
  337. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  338. }
  339. getSecondNav();
  340. }
  341. //获得列表
  342. getParentNav();
  343. // 3.2获取二级栏目
  344. const secondNav = ref([]);
  345. let getSecondNav = async () => {
  346. const listData = await requestDataPromise('/web/getWebsiteModelCategory', {
  347. method: 'GET',
  348. query: {
  349. 'placeid': 1,
  350. 'pid': parent_id.value,
  351. 'num': 8,
  352. },
  353. });
  354. console.log('listData', listData);
  355. if (listData.code == 200) {
  356. secondNav.value = listData.data
  357. } else {
  358. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  359. console.log("错误位置:获取新闻列表")
  360. console.log("后端错误反馈:", listData.message)
  361. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  362. }
  363. }
  364. //3.二级栏目 end ---------------------------------------->
  365. //4.设置seo信息 start---------------------------------------->
  366. //4.1 设置seo信息
  367. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  368. method: 'GET',
  369. query: {
  370. 'catid': articleId
  371. },
  372. });
  373. if (setData.code == 200) {
  374. let seoTitle = setData.data.seo_title;
  375. let seoDescription = setData.data.seo_description;
  376. let seoKeywords = setData.data.seo_keywords;
  377. let seoSuffix = setData.data.suffix;
  378. let seoName = setData.data.website_name;
  379. useSeoMeta({
  380. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  381. meta: [
  382. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  383. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  384. { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no', tagPriority: 10 }
  385. ]
  386. });
  387. } else {
  388. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  389. // console.log("错误位置:设置列表页面SEO数据")
  390. // console.log("后端错误反馈:", setData.message)
  391. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  392. }
  393. //4.设置seo信息 end---------------------------------------->
  394. //5.广告 start---------------------------------------->
  395. let adImg1 = ref({});
  396. let adImg2 = ref({});
  397. onMounted(async () => {
  398. //从客户端获取行政职能部门 加快打开速度
  399. const { $webUrl, $CwebUrl } = useNuxtApp();
  400. //广告1
  401. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_list_0001`
  402. const responseAd1 = await fetch(url, {
  403. headers: {
  404. 'Content-Type': 'application/json',
  405. 'Userurl': $CwebUrl,
  406. 'Origin': $CwebUrl
  407. }
  408. });
  409. const resultAd1 = await responseAd1.json();
  410. adImg1.value = resultAd1.data[0];
  411. //广告2
  412. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_list_0002`
  413. const responseAd2 = await fetch(url2, {
  414. headers: {
  415. 'Content-Type': 'application/json',
  416. 'Userurl': $CwebUrl,
  417. 'Origin': $CwebUrl
  418. }
  419. });
  420. const resultAd2 = await responseAd2.json();
  421. adImg2.value = resultAd2.data[0];
  422. })
  423. //5.广告 end---------------------------------------->
  424. </script>
  425. <style lang="less" scoped>
  426. //@import url('@/assets/css/list/pc.less');
  427. //@import url('@/assets/css/list/yd.less');
  428. //面包屑
  429. .breadcrumb-box {
  430. width: 1400px;
  431. margin: 0 auto 0px;
  432. .inner {
  433. width: 100%;
  434. height: 22PX;
  435. margin: 20PX 0;
  436. // margin-top: 20px;
  437. // margin-bottom: 20px;
  438. font-family: Microsoft YaHei, Microsoft YaHei;
  439. font-weight: 400;
  440. font-size: 20PX;
  441. color: #666666;
  442. line-height: 23PX;
  443. text-align: left;
  444. font-style: normal;
  445. text-transform: none;
  446. display: flex;
  447. align-items: center;
  448. border-bottom: 1PX solid #ccc;
  449. margin-bottom: 10PX;
  450. padding: 20PX 20PX 20PX 0;
  451. box-sizing: border-box;
  452. a {
  453. font-size: 16PX;
  454. color: #000;
  455. // line-height: 20px;
  456. height:22PX;
  457. line-height:22PX;
  458. display:inline-block;
  459. font-weight:normal;
  460. }
  461. span {
  462. font-size: 16PX;
  463. color: #000;
  464. line-height: 20PX;
  465. &.location {
  466. font-size:16PX;
  467. height:22PX;
  468. line-height:22PX;
  469. font-weight:normal;
  470. // line-height: 20px;
  471. }
  472. }
  473. }
  474. .phone_breadcrumb_text{
  475. /deep/ .el-breadcrumb__inner{
  476. font-size:16PX;
  477. height:22PX;
  478. line-height:22PX;
  479. font-weight:normal;
  480. }
  481. }
  482. }
  483. .breadcrumb-box{width:1400PX;margin:0px auto 0px; }
  484. .el-breadcrumb{height:22PX;line-height:22PX;}
  485. .breadcrumb-box .inner span.location{font-size:16PX;;height:22PX;;line-height:22PX; font-weight:normal;}
  486. .breadcrumb-box .inner a{font-size:16PX;;height:22PX;line-height:22PX;display:inline-block; font-weight:normal;}
  487. .breadcrumb-box .phone_breadcrumb_text /deep/.el-breadcrumb__inner{font-size:16PX;;height:22PX;line-height:22PX;
  488. font-weight:normal;}
  489. .breadcrumb-box:deep(.el-icon){width:16PX;height:16PX;}
  490. .breadcrumb-box .inner span{font-size:16PX;;height:22PX;line-height:22PX;}
  491. .pagination{padding:10px 0px;margin:10px 0px;}
  492. //分页
  493. .pagination {
  494. height: 34PX;
  495. display: flex;
  496. justify-content: center;
  497. margin: 0;
  498. width: 100%;
  499. overflow: hidden;
  500. margin: 20PX 0;
  501. padding: 20PX 0;
  502. // 鼠标移入后字体颜色
  503. .el-pagination::v-deep :hover {
  504. // color: #139609;
  505. }
  506. .el-pagination.is-background::v-deep .btn-next,
  507. .el-pagination.is-background::v-deep .btn-prev {
  508. width: 70PX;
  509. height: 34PX;
  510. margin: 0px 10PX;
  511. border-radius: 4PX;
  512. }
  513. .el-pagination.is-background::v-deep .el-pager li {
  514. margin: 0px 10PX;
  515. width: 38PX;
  516. height: 34PX;
  517. border-radius: 4PX;
  518. }
  519. .el-pagination.is-background::v-deep .btn-next.is-active,
  520. .el-pagination.is-background::v-deep .btn-prev.is-active,
  521. .el-pagination.is-background::v-deep .el-pager li.is-active {
  522. background-color: #337ab7;
  523. color: #fff;
  524. }
  525. .total {
  526. display: block;
  527. height: 34PX;
  528. line-height: 34PX;
  529. font-size: 18PX;
  530. margin-left: 20PX;
  531. }
  532. }
  533. @media screen and (min-width: 1401px) {
  534. //你的样式
  535. .pagination_pc_none {
  536. display: none;
  537. }
  538. //资讯列表
  539. .newsList {
  540. width: 1401PX;
  541. margin: 0 auto;
  542. overflow: hidden;
  543. background: #fff;
  544. margin-top: 20PX;
  545. padding: 0 10PX;
  546. .listBoxLeft {
  547. float:left;
  548. overflow: hidden;
  549. width: 65%;
  550. .list {
  551. >li {
  552. width: 100%;
  553. height: auto;
  554. overflow: hidden;
  555. border-bottom: 1PX solid #ccc;
  556. padding: 10PX 0;
  557. margin-bottom: 10PX;
  558. // display: flex;
  559. // align-items: flex-start;
  560. // justify-content: space-between;
  561. display:block;
  562. a {
  563. color: #337ab7;
  564. text-decoration: none;
  565. display: block;
  566. width: 100%;
  567. height: auto;
  568. // line-height: 22PX;
  569. font-size: 20PX;
  570. font-weight: bold;
  571. color: #333;
  572. overflow: hidden;
  573. .hasImg{
  574. .newsTopTitle{
  575. width: 100%;
  576. height: 30PX;
  577. font-size: 20PX;
  578. white-space: nowrap; /* 强制文字不换行 */
  579. overflow: hidden; /* 隐藏超出容器的内容 */
  580. text-overflow: ellipsis; /* 超出部分显示省略号 */
  581. }
  582. .newsBottomBody{
  583. width: 100%;
  584. height: auto;
  585. .li_img_box{
  586. width: 200PX;
  587. height: 100PX;
  588. float: left;
  589. overflow: hidden;
  590. margin-right: 20PX;
  591. img{
  592. display: block;
  593. width: 100%;
  594. height: 100%;
  595. }
  596. }
  597. .li_right_box{
  598. overflow: hidden;
  599. height: auto;
  600. .li_h4_dot1{
  601. display: block;
  602. width: 100%;
  603. height: 40PX;
  604. line-height: 40PX;
  605. overflow: hidden;
  606. white-space: nowrap;
  607. text-overflow: ellipsis;
  608. font-size: 18PX;
  609. color: #2c3036;
  610. font-weight: normal;
  611. }
  612. .li_dot3{
  613. text-indent: 2em;
  614. width: 100%;
  615. height: 60PX;
  616. line-height: 30PX;
  617. font-size: 16PX;
  618. color: #333;
  619. font-weight: normal;
  620. display: -webkit-box;
  621. -webkit-box-orient: vertical;
  622. -webkit-line-clamp: 2;
  623. overflow: hidden;
  624. text-overflow: ellipsis;
  625. word-break: break-all;
  626. }
  627. }
  628. }
  629. }
  630. .notHasImg{
  631. overflow: hidden;
  632. height: auto;
  633. // background: red;
  634. .newsTopTitle{
  635. width: 100%;
  636. height: 30PX;
  637. font-size: 20PX;
  638. white-space: nowrap; /* 强制文字不换行 */
  639. overflow: hidden; /* 隐藏超出容器的内容 */
  640. text-overflow: ellipsis; /* 超出部分显示省略号 */
  641. }
  642. .li_dot3{
  643. text-indent: 2em;
  644. width: 100%;
  645. height: 60PX;
  646. line-height: 24PX;
  647. font-size: 16PX;
  648. color: #333;
  649. font-weight: normal;
  650. display: -webkit-box;
  651. -webkit-box-orient: vertical;
  652. -webkit-line-clamp: 2;
  653. overflow: hidden;
  654. text-overflow: ellipsis;
  655. word-break: break-all;
  656. span{
  657. font-size: 16PX;
  658. color: #004276;
  659. float: right;
  660. }
  661. }
  662. }
  663. }
  664. }
  665. }
  666. }
  667. .listBoxRight {
  668. width: 32%;
  669. float: right;
  670. overflow: hidden;
  671. margin: 20PX auto;
  672. box-sizing: border-box;
  673. .newsItemsBox {
  674. width: 100%;
  675. height: auto;
  676. // padding: 10PX 0;
  677. // background: blue;
  678. .new-items-box-title {
  679. // margin-bottom: 10PX;
  680. width: 100%;
  681. height: 36PX;
  682. line-height: 36PX;
  683. border-bottom: 2PX solid #83E515;
  684. // background: yellow;
  685. span{
  686. width: 46PX;
  687. height: 31PX;
  688. background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
  689. background-size: 100% 100%;
  690. display: block;
  691. height: 31PX;
  692. float: left;
  693. margin: 2PX;
  694. }
  695. a{
  696. width: 88PX;
  697. float: left;
  698. display: block;
  699. font-size: 16PX;
  700. text-align: center;
  701. color: #065500;
  702. font-weight: bold;
  703. // margin-left: 10px;
  704. // border-bottom: 2PX solid #2b96f1;
  705. // background: red;
  706. }
  707. }
  708. .new-items-box-body{
  709. padding: 10PX 10PX ;
  710. .coniteml{
  711. width: 100%;
  712. height: auto;
  713. // overflow: hidden;
  714. // padding: 10PX 10PX ;
  715. display: flex;
  716. align-items: center;
  717. justify-content: space-between;
  718. margin-bottom: 20PX;
  719. .l_img{
  720. width: 48%;
  721. // background: red;
  722. height: auto;
  723. // float: left;
  724. // overflow: hidden;
  725. .imgA{
  726. display: block;
  727. height: 100PX;
  728. img{
  729. vertical-align: middle;
  730. // display: block ;
  731. bottom: 0;
  732. width: 100%;
  733. height: 100%;
  734. // margin-top: -20PX;
  735. }
  736. }
  737. }
  738. }
  739. .coniteml2{
  740. width: 100%;
  741. height: auto;
  742. overflow: hidden;
  743. margin: 10PX 0;
  744. .rdxwImg{
  745. width: 34%;
  746. height: 92PX;
  747. float: left;
  748. overflow: hidden;
  749. a{
  750. text-decoration: none;
  751. img{
  752. display: block;
  753. width: 100%;
  754. height: 100%;
  755. }
  756. }
  757. }
  758. .rdxwText{
  759. width: 63%;
  760. height: auto;
  761. overflow: hidden;
  762. float: right;
  763. a{
  764. text-decoration: none;
  765. h4{
  766. display: block;
  767. width: 100%;
  768. height: 20PX;
  769. line-height: 20PX;
  770. overflow: hidden;
  771. font-size: 14PX;
  772. color: #000;
  773. font-weight: bold;
  774. }
  775. h4:hover{
  776. color: #83E515;
  777. }
  778. p{
  779. width: 100%;
  780. height: 50PX;
  781. line-height: 24PX;
  782. font-size: 15PX;
  783. color: #333;
  784. margin: 0;
  785. overflow: hidden;
  786. display: -webkit-box;
  787. -webkit-box-orient: vertical;
  788. -webkit-line-clamp: 2;
  789. overflow: hidden;
  790. text-overflow: ellipsis;
  791. word-break: break-all;
  792. text-indent: 2em;
  793. }
  794. p:hover{
  795. color: #83E515;
  796. }
  797. }
  798. }
  799. }
  800. .zzjj{
  801. // margin-bottom: 40PX;
  802. .maskLayer{
  803. position: relative;
  804. height: 100PX;
  805. width: 49%;
  806. .maskLayer_text{
  807. .zzc{
  808. position: absolute;
  809. bottom: 0;
  810. left: 0;
  811. background: rgba(0, 0, 0, .5);
  812. color: #fff;
  813. display: block;
  814. width: 100%;
  815. line-height: 30PX;
  816. overflow: hidden;
  817. text-align: center;
  818. font-size: 16PX;
  819. }
  820. }
  821. }
  822. }
  823. .conitemlList{
  824. width: 100%;
  825. height: auto;
  826. overflow: hidden;
  827. // background: blue;
  828. li{
  829. width: 100%;
  830. height: 30PX;
  831. display: flex;
  832. align-items: center;
  833. justify-content:space-between;
  834. span{
  835. width: 4%;
  836. display: inline-block;
  837. height: 15PX;
  838. font-size: 15PX;
  839. line-height: 15PX;
  840. text-align: center;
  841. float: left;
  842. overflow: hidden;
  843. margin-right: 6PX;
  844. }
  845. a{
  846. display: inline-block;
  847. line-height: 34PX;
  848. width: 96%;
  849. // background: green;
  850. font-size: 15PX;
  851. color: #454749;
  852. margin-top: 0;
  853. overflow: hidden;
  854. text-overflow: ellipsis;
  855. white-space: nowrap;
  856. }
  857. a:hover{
  858. color: #83E515;
  859. }
  860. }
  861. }
  862. .conitemlList li:nth-child(1) span{
  863. background: #ff7500;
  864. color: #fff;
  865. }
  866. .conitemlList li:nth-child(2) span{
  867. background: #ffa400;
  868. color: #fff;
  869. }
  870. .conitemlList li:nth-child(3) span{
  871. background: #f6c20e;
  872. color: #fff;
  873. }
  874. }
  875. }
  876. }
  877. }
  878. }
  879. @media screen and (min-width: 801px) and (max-width: 1400px) {
  880. .pagination_pc_none {
  881. display: none;
  882. }
  883. //资讯列表
  884. .newsList {
  885. min-width: 801PX;
  886. max-width: 1400PX;
  887. margin: 0 auto;
  888. overflow: hidden;
  889. background: #fff;
  890. margin-top: 20PX;
  891. padding: 0 10PX;
  892. .listBoxLeft {
  893. float:left;
  894. overflow: hidden;
  895. width: 65%;
  896. .list {
  897. >li {
  898. width: 100%;
  899. height: auto;
  900. overflow: hidden;
  901. border-bottom: 1PX solid #ccc;
  902. padding: 10PX 0;
  903. margin-bottom: 10PX;
  904. // display: flex;
  905. // align-items: flex-start;
  906. // justify-content: space-between;
  907. display:block;
  908. a {
  909. color: #337ab7;
  910. text-decoration: none;
  911. display: block;
  912. width: 100%;
  913. height: auto;
  914. // line-height: 22PX;
  915. font-size: 20PX;
  916. font-weight: bold;
  917. color: #333;
  918. overflow: hidden;
  919. .hasImg{
  920. .newsTopTitle{
  921. width: 100%;
  922. height: 30PX;
  923. font-size: 20PX;
  924. white-space: nowrap; /* 强制文字不换行 */
  925. overflow: hidden; /* 隐藏超出容器的内容 */
  926. text-overflow: ellipsis; /* 超出部分显示省略号 */
  927. }
  928. .newsBottomBody{
  929. width: 100%;
  930. height: auto;
  931. .li_img_box{
  932. width: 200PX;
  933. height: 100PX;
  934. float: left;
  935. overflow: hidden;
  936. margin-right: 20PX;
  937. img{
  938. display: block;
  939. width: 100%;
  940. height: 100%;
  941. }
  942. }
  943. .li_right_box{
  944. overflow: hidden;
  945. height: auto;
  946. .li_h4_dot1{
  947. display: block;
  948. width: 100%;
  949. height: 40PX;
  950. line-height: 40PX;
  951. overflow: hidden;
  952. white-space: nowrap;
  953. text-overflow: ellipsis;
  954. font-size: 18PX;
  955. color: #2c3036;
  956. font-weight: normal;
  957. }
  958. .li_dot3{
  959. text-indent: 2em;
  960. width: 100%;
  961. height: 60PX;
  962. line-height: 30PX;
  963. font-size: 16PX;
  964. color: #333;
  965. font-weight: normal;
  966. display: -webkit-box;
  967. -webkit-box-orient: vertical;
  968. -webkit-line-clamp: 2;
  969. overflow: hidden;
  970. text-overflow: ellipsis;
  971. word-break: break-all;
  972. }
  973. }
  974. }
  975. }
  976. .notHasImg{
  977. overflow: hidden;
  978. height: auto;
  979. // background: red;
  980. .newsTopTitle{
  981. width: 100%;
  982. height: 30PX;
  983. font-size: 20PX;
  984. white-space: nowrap; /* 强制文字不换行 */
  985. overflow: hidden; /* 隐藏超出容器的内容 */
  986. text-overflow: ellipsis; /* 超出部分显示省略号 */
  987. }
  988. .li_dot3{
  989. text-indent: 2em;
  990. width: 100%;
  991. height: 60PX;
  992. line-height: 24PX;
  993. font-size: 16PX;
  994. color: #333;
  995. font-weight: normal;
  996. display: -webkit-box;
  997. -webkit-box-orient: vertical;
  998. -webkit-line-clamp: 2;
  999. overflow: hidden;
  1000. text-overflow: ellipsis;
  1001. word-break: break-all;
  1002. span{
  1003. font-size: 16PX;
  1004. color: #004276;
  1005. float: right;
  1006. }
  1007. }
  1008. }
  1009. }
  1010. }
  1011. }
  1012. }
  1013. .listBoxRight {
  1014. width: 32%;
  1015. float: right;
  1016. overflow: hidden;
  1017. margin: 20PX auto;
  1018. box-sizing: border-box;
  1019. .newsItemsBox {
  1020. width: 100%;
  1021. height: auto;
  1022. // padding: 10PX 0;
  1023. // background: blue;
  1024. .new-items-box-title {
  1025. // margin-bottom: 10PX;
  1026. width: 100%;
  1027. height: 36PX;
  1028. line-height: 36PX;
  1029. border-bottom: 2PX solid #83E515;
  1030. // background: yellow;
  1031. span{
  1032. width: 46PX;
  1033. height: 31PX;
  1034. background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
  1035. background-size: 100% 100%;
  1036. display: block;
  1037. height: 31PX;
  1038. float: left;
  1039. margin: 2PX;
  1040. }
  1041. a{
  1042. width: 88PX;
  1043. float: left;
  1044. display: block;
  1045. font-size: 16PX;
  1046. text-align: center;
  1047. color: #065500;
  1048. font-weight: bold;
  1049. // margin-left: 10px;
  1050. // border-bottom: 2PX solid #2b96f1;
  1051. // background: red;
  1052. }
  1053. }
  1054. .new-items-box-body{
  1055. padding: 10PX 10PX ;
  1056. .coniteml{
  1057. width: 100%;
  1058. height: auto;
  1059. // overflow: hidden;
  1060. // padding: 10PX 10PX ;
  1061. display: flex;
  1062. align-items: center;
  1063. justify-content: space-between;
  1064. margin-bottom: 20PX;
  1065. .l_img{
  1066. width: 48%;
  1067. // background: red;
  1068. height: auto;
  1069. // float: left;
  1070. // overflow: hidden;
  1071. .imgA{
  1072. display: block;
  1073. height: 100PX;
  1074. img{
  1075. vertical-align: middle;
  1076. // display: block ;
  1077. bottom: 0;
  1078. width: 100%;
  1079. height: 100%;
  1080. // margin-top: -20PX;
  1081. }
  1082. }
  1083. }
  1084. }
  1085. .coniteml2{
  1086. width: 100%;
  1087. height: auto;
  1088. overflow: hidden;
  1089. margin: 10PX 0;
  1090. .rdxwImg{
  1091. width: 34%;
  1092. height: 92PX;
  1093. float: left;
  1094. overflow: hidden;
  1095. a{
  1096. text-decoration: none;
  1097. img{
  1098. display: block;
  1099. width: 100%;
  1100. height: 100%;
  1101. }
  1102. }
  1103. }
  1104. .rdxwText{
  1105. width: 63%;
  1106. height: auto;
  1107. overflow: hidden;
  1108. float: right;
  1109. a{
  1110. text-decoration: none;
  1111. h4{
  1112. display: block;
  1113. width: 100%;
  1114. height: 20PX;
  1115. line-height: 20PX;
  1116. overflow: hidden;
  1117. font-size: 14PX;
  1118. color: #000;
  1119. font-weight: bold;
  1120. }
  1121. h4:hover{
  1122. color: #83E515;
  1123. }
  1124. p{
  1125. width: 100%;
  1126. height: 50PX;
  1127. line-height: 24PX;
  1128. font-size: 15PX;
  1129. color: #333;
  1130. margin: 0;
  1131. overflow: hidden;
  1132. display: -webkit-box;
  1133. -webkit-box-orient: vertical;
  1134. -webkit-line-clamp: 2;
  1135. overflow: hidden;
  1136. text-overflow: ellipsis;
  1137. word-break: break-all;
  1138. text-indent: 2em;
  1139. }
  1140. p:hover{
  1141. color: #83E515;
  1142. }
  1143. }
  1144. }
  1145. }
  1146. .zzjj{
  1147. // margin-bottom: 40PX;
  1148. .maskLayer{
  1149. position: relative;
  1150. height: 100PX;
  1151. width: 49%;
  1152. .maskLayer_text{
  1153. .zzc{
  1154. position: absolute;
  1155. bottom: 0;
  1156. left: 0;
  1157. background: rgba(0, 0, 0, .5);
  1158. color: #fff;
  1159. display: block;
  1160. width: 100%;
  1161. line-height: 30PX;
  1162. overflow: hidden;
  1163. text-align: center;
  1164. font-size: 16PX;
  1165. }
  1166. }
  1167. }
  1168. }
  1169. .conitemlList{
  1170. width: 100%;
  1171. height: auto;
  1172. overflow: hidden;
  1173. // background: blue;
  1174. li{
  1175. width: 100%;
  1176. height: 30PX;
  1177. display: flex;
  1178. align-items: center;
  1179. justify-content:space-between;
  1180. span{
  1181. width: 4%;
  1182. display: inline-block;
  1183. height: 15PX;
  1184. font-size: 15PX;
  1185. line-height: 15PX;
  1186. text-align: center;
  1187. float: left;
  1188. overflow: hidden;
  1189. margin-right: 6PX;
  1190. }
  1191. a{
  1192. display: inline-block;
  1193. line-height: 34PX;
  1194. width: 96%;
  1195. // background: green;
  1196. font-size: 15PX;
  1197. color: #454749;
  1198. margin-top: 0;
  1199. overflow: hidden;
  1200. text-overflow: ellipsis;
  1201. white-space: nowrap;
  1202. }
  1203. a:hover{
  1204. color: #83E515;
  1205. }
  1206. }
  1207. }
  1208. .conitemlList li:nth-child(1) span{
  1209. background: #ff7500;
  1210. color: #fff;
  1211. }
  1212. .conitemlList li:nth-child(2) span{
  1213. background: #ffa400;
  1214. color: #fff;
  1215. }
  1216. .conitemlList li:nth-child(3) span{
  1217. background: #f6c20e;
  1218. color: #fff;
  1219. }
  1220. }
  1221. }
  1222. }
  1223. }
  1224. }
  1225. @media screen and (max-width: 800px) {
  1226. //你的样式
  1227. .breadcrumb-box .inner{
  1228. margin-bottom: 25PX;
  1229. font-size: 15PX;
  1230. }
  1231. // 分页器
  1232. .pagination {
  1233. width: 100%;
  1234. height: 68px;
  1235. margin-left: 282px;
  1236. display: flex;
  1237. justify-content: center;
  1238. margin: 40px 0;
  1239. padding: 40px 0;
  1240. // 鼠标移入后字体颜色
  1241. .el-pagination::v-deep :hover {
  1242. color: #1aa0f7;
  1243. }
  1244. .el-pagination.is-background::v-deep .btn-next,
  1245. .el-pagination.is-background::v-deep .btn-prev {
  1246. width: 140px;
  1247. height: 68px;
  1248. margin: 0px 20px;
  1249. border-radius: 8px;
  1250. }
  1251. .el-pagination.is-background::v-deep .el-pager li {
  1252. margin: 0px 20px;
  1253. width: 68px;
  1254. height: 68px;
  1255. border-radius: 8px;
  1256. font-size: 28px;
  1257. }
  1258. .el-pagination.is-background::v-deep .btn-next.is-active,
  1259. .el-pagination.is-background::v-deep .btn-prev.is-active,
  1260. .el-pagination.is-background::v-deep .el-pager li.is-active {
  1261. background-color: #1aa0f7;
  1262. color: #fff;
  1263. }
  1264. }
  1265. .pagination_phone_none {
  1266. display: none;
  1267. }
  1268. //资讯列表
  1269. .newsList {
  1270. max-width: 800PX;
  1271. margin: 0 auto;
  1272. overflow: hidden;
  1273. background: #fff;
  1274. margin-top: 20PX;
  1275. padding: 0 20PX;
  1276. .listBoxLeft {
  1277. // float:left;
  1278. overflow: hidden;
  1279. width: 100%;
  1280. .list {
  1281. >li {
  1282. width: 100%;
  1283. height: auto;
  1284. overflow: hidden;
  1285. border-bottom: 1PX solid #ccc;
  1286. padding: 10PX 0;
  1287. margin-bottom: 10PX;
  1288. // display: flex;
  1289. // align-items: flex-start;
  1290. // justify-content: space-between;
  1291. display:block;
  1292. a {
  1293. color: #337ab7;
  1294. text-decoration: none;
  1295. display: block;
  1296. width: 100%;
  1297. height: auto;
  1298. // line-height: 22PX;
  1299. font-size: 20PX;
  1300. font-weight: bold;
  1301. color: #333;
  1302. overflow: hidden;
  1303. .hasImg{
  1304. .newsTopTitle{
  1305. width: 100%;
  1306. height: 30PX;
  1307. font-size: 38px;
  1308. white-space: nowrap; /* 强制文字不换行 */
  1309. overflow: hidden; /* 隐藏超出容器的内容 */
  1310. text-overflow: ellipsis; /* 超出部分显示省略号 */
  1311. }
  1312. .newsBottomBody{
  1313. width: 100%;
  1314. height: auto;
  1315. .li_img_box{
  1316. width: 100%;
  1317. height: 150PX;
  1318. // float: left;
  1319. overflow: hidden;
  1320. margin-right: 20PX;
  1321. img{
  1322. display: block;
  1323. width: 100%;
  1324. height: 100%;
  1325. }
  1326. }
  1327. .li_right_box{
  1328. width: 100%;
  1329. overflow: hidden;
  1330. height: auto;
  1331. .li_h4_dot1{
  1332. display: block;
  1333. width: 100%;
  1334. height: 40PX;
  1335. line-height: 40PX;
  1336. overflow: hidden;
  1337. white-space: nowrap;
  1338. text-overflow: ellipsis;
  1339. font-size: 18PX;
  1340. color: #2c3036;
  1341. font-weight: normal;
  1342. }
  1343. .li_dot3{
  1344. text-indent: 2em;
  1345. width: 100%;
  1346. height: 60PX;
  1347. line-height: 30PX;
  1348. font-size: 34px;
  1349. color: #333;
  1350. font-weight: normal;
  1351. display: -webkit-box;
  1352. -webkit-box-orient: vertical;
  1353. -webkit-line-clamp: 2;
  1354. overflow: hidden;
  1355. text-overflow: ellipsis;
  1356. word-break: break-all;
  1357. }
  1358. }
  1359. }
  1360. }
  1361. .notHasImg{
  1362. overflow: hidden;
  1363. height: auto;
  1364. // background: red;
  1365. .newsTopTitle{
  1366. width: 100%;
  1367. height: 30PX;
  1368. font-size: 38px;
  1369. white-space: nowrap; /* 强制文字不换行 */
  1370. overflow: hidden; /* 隐藏超出容器的内容 */
  1371. text-overflow: ellipsis; /* 超出部分显示省略号 */
  1372. }
  1373. .li_dot3{
  1374. text-indent: 2em;
  1375. width: 100%;
  1376. height: 52.5PX;
  1377. line-height: 26.25PX;
  1378. color: #333;
  1379. font-weight: normal;
  1380. display: -webkit-box;
  1381. -webkit-box-orient: vertical;
  1382. -webkit-line-clamp: 2;
  1383. overflow: hidden;
  1384. text-overflow: ellipsis;
  1385. word-break: break-all;
  1386. font-size: 34px;
  1387. span{
  1388. display: none;
  1389. font-size: 17PX;
  1390. color: #004276;
  1391. float: right;
  1392. }
  1393. }
  1394. }
  1395. }
  1396. }
  1397. }
  1398. }
  1399. .listBoxRight {
  1400. width: 100%;
  1401. // float: right;
  1402. overflow: hidden;
  1403. margin: 20PX auto;
  1404. box-sizing: border-box;
  1405. .newsItemsBox {
  1406. width: 100%;
  1407. height: auto;
  1408. // padding: 10PX 0;
  1409. // background: blue;
  1410. .new-items-box-title {
  1411. // margin-bottom: 10PX;
  1412. width: 100%;
  1413. height: 36PX;
  1414. line-height: 36PX;
  1415. border-bottom: 2PX solid #83E515;
  1416. // background: yellow;
  1417. span{
  1418. width: 46PX;
  1419. height: 31PX;
  1420. background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
  1421. background-size: 100% 100%;
  1422. display: block;
  1423. height: 31PX;
  1424. float: left;
  1425. margin: 2PX;
  1426. }
  1427. a{
  1428. width: 88PX;
  1429. float: left;
  1430. display: block;
  1431. font-size: 16PX;
  1432. text-align: center;
  1433. color: #065500;
  1434. font-weight: bold;
  1435. // margin-left: 10px;
  1436. // border-bottom: 2PX solid #2b96f1;
  1437. // background: red;
  1438. }
  1439. }
  1440. .new-items-box-body{
  1441. padding: 10PX 10PX ;
  1442. .coniteml{
  1443. width: 100%;
  1444. height: auto;
  1445. // overflow: hidden;
  1446. // padding: 10PX 10PX ;
  1447. display: flex;
  1448. align-items: center;
  1449. justify-content: space-between;
  1450. margin-bottom: 90PX;
  1451. .l_img{
  1452. width: 48%;
  1453. // background: red;
  1454. height: auto;
  1455. // float: left;
  1456. // overflow: hidden;
  1457. .imgA{
  1458. display: block;
  1459. height: 112.5PX;
  1460. img{
  1461. vertical-align: middle;
  1462. // display: block ;
  1463. bottom: 5PX;
  1464. width: 100%;
  1465. height: 100%;
  1466. // margin-top: -20PX;
  1467. }
  1468. }
  1469. }
  1470. }
  1471. .coniteml2{
  1472. width: 100%;
  1473. height: auto;
  1474. overflow: hidden;
  1475. margin: 10PX 0;
  1476. .rdxwImg{
  1477. width: 34%;
  1478. height: 92PX;
  1479. float: left;
  1480. overflow: hidden;
  1481. a{
  1482. text-decoration: none;
  1483. img{
  1484. display: block;
  1485. width: 100%;
  1486. height: 100%;
  1487. }
  1488. }
  1489. }
  1490. .rdxwText{
  1491. width: 63%;
  1492. height: auto;
  1493. overflow: hidden;
  1494. float: right;
  1495. margin-top: 10PX;
  1496. a{
  1497. text-decoration: none;
  1498. h4{
  1499. display: block;
  1500. width: 100%;
  1501. height: 20PX;
  1502. line-height: 20PX;
  1503. overflow: hidden;
  1504. font-size: 28px;
  1505. color: #000;
  1506. font-weight: bold;
  1507. }
  1508. h4:hover{
  1509. color: #83E515;
  1510. }
  1511. p{
  1512. width: 100%;
  1513. height: 50PX;
  1514. line-height: 24PX;
  1515. font-size: 30px;
  1516. color: #333;
  1517. margin: 0;
  1518. overflow: hidden;
  1519. display: -webkit-box;
  1520. -webkit-box-orient: vertical;
  1521. -webkit-line-clamp: 2;
  1522. overflow: hidden;
  1523. text-overflow: ellipsis;
  1524. word-break: break-all;
  1525. text-indent: 2em;
  1526. }
  1527. p:hover{
  1528. color: #83E515;
  1529. }
  1530. }
  1531. }
  1532. }
  1533. .zzjj{
  1534. // margin-bottom: 40PX;
  1535. .maskLayer{
  1536. position: relative;
  1537. height: 37.5PX;
  1538. line-height: 37.5PX;
  1539. width: 49%;
  1540. .maskLayer_text{
  1541. height: 37.5PX;
  1542. .zzc{
  1543. position: absolute;
  1544. bottom: -75PX;
  1545. height: 37.5PX;
  1546. left: 0;
  1547. background: rgba(0, 0, 0, .5);
  1548. color: #fff;
  1549. display: block;
  1550. width: 100%;
  1551. line-height: 37.5PX;
  1552. overflow: hidden;
  1553. text-align: center;
  1554. font-size: 16PX;
  1555. }
  1556. }
  1557. }
  1558. }
  1559. .conitemlList{
  1560. width: 100%;
  1561. height: auto;
  1562. overflow: hidden;
  1563. // background: blue;
  1564. li{
  1565. width: 100%;
  1566. height: 30PX;
  1567. display: flex;
  1568. align-items: center;
  1569. justify-content:space-between;
  1570. span{
  1571. width: 4%;
  1572. display: inline-block;
  1573. height: 15PX;
  1574. font-size: 15PX;
  1575. line-height: 15PX;
  1576. text-align: center;
  1577. float: left;
  1578. overflow: hidden;
  1579. margin-right: 6PX;
  1580. }
  1581. a{
  1582. display: inline-block;
  1583. line-height: 34PX;
  1584. width: 96%;
  1585. // background: green;
  1586. font-size: 34px;
  1587. color: #454749;
  1588. margin-top: 0;
  1589. overflow: hidden;
  1590. text-overflow: ellipsis;
  1591. white-space: nowrap;
  1592. }
  1593. a:hover{
  1594. color: #83E515;
  1595. }
  1596. }
  1597. }
  1598. .conitemlList li:nth-child(1) span{
  1599. background: #ff7500;
  1600. color: #fff;
  1601. }
  1602. .conitemlList li:nth-child(2) span{
  1603. background: #ffa400;
  1604. color: #fff;
  1605. }
  1606. .conitemlList li:nth-child(3) span{
  1607. background: #f6c20e;
  1608. color: #fff;
  1609. }
  1610. }
  1611. }
  1612. }
  1613. }
  1614. }
  1615. </style>